import my_requests from "@/plugins/request";


/**
 * 查询是否点赞  根据当前登录的用户名userName,查询是否点赞此文章articleId
 * @param queryData
 *      queryData = {
 *         liker: userName,
 *         articleId: this.articleAllInfo.articleId
 *       }
 */
export function get_IsLike(queryData){
    return my_requests({
        url: '/articleLikeDetail/isLike',
        method: 'get',
        params:queryData
    })
}
/**
 * 查询全部_articleLikeDetail信息
 */
export function get_articleLikeDetailInfo(queryData){
    return my_requests({
        url: '/articleLikeDetail',
        method: 'get',
        params:queryData
    })
}

/**
 * 查询全部_articleLikeDetail信息  无分页
 */
export function get_articleLikeDetailInfoNoPage(queryData){
    return my_requests({
        url: '/articleLikeDetail/noPageALL',
        method: 'get',
        params:queryData
    })
}

/**
 * 查询单个_articleLikeDetail信息
 */
export function get_articleLikeDetailInfoById(Id){
    return my_requests({
        url: '/articleLikeDetail/'+Id,
        method: 'get',
    })
}


/**
 * 新增_articleLikeDetail信息
 */
export function add_articleLikeDetailInfo(data){
    return my_requests({
        url: '/articleLikeDetail',
        method: 'post',
        data:data
    })
}


/**
 * 修改_articleLikeDetail信息
 */
export function modify_articleLikeDetailInfo(data){
    return my_requests({
        url: '/articleLikeDetail',
        method: 'put',
        data:data
    })
}


/**
 * 删除_articleLikeDetail信息
 */
export function delete_articleLikeDetailInfo(id){
    return my_requests({
        url: '/articleLikeDetail/'+id,
        method: 'delete',
    })
}

/**
 * 删除_articleLikeDetail信息
 */
export function deleteLikeByUserNameAndArticleId(data){
    return my_requests({
        url: '/articleLikeDetail/deleteLikeByUserNameAndArticleId',
        method: 'post',
        data:data
    })
}

/**
 * 批量删除_articleLikeDetail信息
 */
export function delete_articleLikeDetailInfoBatch(idArr){
    return my_requests({
        url: '/articleLikeDetail/deleteBatch',
        method: 'post',
        data:idArr
    })
}



